package cn.ztr.ymcc.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ztr
 * @since 2023-03-09
 */
@Data
@Accessors(chain = true)
@TableName("t_shop_car")
public class ShopCar extends Model<ShopCar> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long courseId;

    private String courseName;

    /**
     * 课程封面
     */
    private String coursePic;

    /**
     * 课程价格
     */
    private BigDecimal coursePrice;

    /**
     * 购买数量
     */
    private Integer buyCount = 1;

    /**
     * 小计金额
     */
    private String amount;

    private Long userId;

    private String username;

    /**
     * 加入购物车时间
     */
    private Date joinTime = new Date();

    /**
     * 状态: 0 未下单,1已下单
     */
    private Integer status = 0;

}
